package br.edu.com1263.negocio;

import java.util.Collection;

import br.edu.com1263.dao.TarefaDAO;
import br.edu.com1263.model.Tarefa;


public class TarefaFacadeImpl implements TarefaFacade{
	private TarefaDAO tarefaDAO;
	
	public TarefaFacadeImpl(TarefaDAO tarefaDAO){
		this.tarefaDAO = tarefaDAO;
	}

	@Override
	public Tarefa consultar(Long id) {
		return tarefaDAO.consultar(id);
	}

	@Override
	public Collection<Tarefa> consultarTodos() {
		return tarefaDAO.consultarTodos();
	}

	@Override
	public void salvar(Tarefa tarefa) {
		tarefaDAO.salvar(tarefa);
		
	}

	@Override
	public void alterar(Tarefa tarefa) {		
		tarefaDAO.alterar(tarefa);
	}

	@Override
	public void remover(Tarefa tarefa) {
		tarefaDAO.remover(tarefa);
	}

}
